package com.jsgt.greekfire.bean

import android.os.Parcel
import android.os.Parcelable

/**
 * author fhx
 * create time 2020/4/23 13:26
 **/
class AddressBean() : Parcelable {
    var contactName: String? = null
    var contactRemark: String? = null
    var addr: String? = null
    var id: String? = null
    var userId: String? = null
    var assetTypeId: String? = null
    var assetTypeName: String? = null

    constructor(parcel: Parcel) : this() {
        contactName = parcel.readString()
        contactRemark = parcel.readString()
        addr = parcel.readString()
        id = parcel.readString()
        userId = parcel.readString()
        assetTypeId = parcel.readString()
        assetTypeName = parcel.readString()
    }

    override fun writeToParcel(parcel: Parcel, flags: Int) {
        parcel.writeString(contactName)
        parcel.writeString(contactRemark)
        parcel.writeString(addr)
        parcel.writeString(id)
        parcel.writeString(userId)
        parcel.writeString(assetTypeId)
        parcel.writeString(assetTypeName)
    }

    override fun describeContents(): Int {
        return 0
    }

    companion object CREATOR : Parcelable.Creator<AddressBean> {
        override fun createFromParcel(parcel: Parcel): AddressBean {
            return AddressBean(parcel)
        }

        override fun newArray(size: Int): Array<AddressBean?> {
            return arrayOfNulls(size)
        }
    }
}